package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HyRatingsMapper;
import com.ruoyi.system.domain.HyRatings;
import com.ruoyi.system.service.IHyRatingsService;

/**
 * 影视评分Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-19
 */
@Service
public class HyRatingsServiceImpl implements IHyRatingsService 
{
    @Autowired
    private HyRatingsMapper hyRatingsMapper;

    /**
     * 查询影视评分
     * 
     * @param ratingsId 影视评分主键
     * @return 影视评分
     */
    @Override
    public HyRatings selectHyRatingsByRatingsId(Long ratingsId)
    {
        return hyRatingsMapper.selectHyRatingsByRatingsId(ratingsId);
    }

    /**
     * 查询影视评分列表
     * 
     * @param hyRatings 影视评分
     * @return 影视评分
     */
    @Override
    public List<HyRatings> selectHyRatingsList(HyRatings hyRatings)
    {
        return hyRatingsMapper.selectHyRatingsList(hyRatings);
    }

    /**
     * 新增影视评分
     * 
     * @param hyRatings 影视评分
     * @return 结果
     */
    @Override
    public int insertHyRatings(HyRatings hyRatings)
    {
        return hyRatingsMapper.insertHyRatings(hyRatings);
    }

    /**
     * 修改影视评分
     * 
     * @param hyRatings 影视评分
     * @return 结果
     */
    @Override
    public int updateHyRatings(HyRatings hyRatings)
    {
        return hyRatingsMapper.updateHyRatings(hyRatings);
    }

    /**
     * 批量删除影视评分
     * 
     * @param ratingsIds 需要删除的影视评分主键
     * @return 结果
     */
    @Override
    public int deleteHyRatingsByRatingsIds(Long[] ratingsIds)
    {
        return hyRatingsMapper.deleteHyRatingsByRatingsIds(ratingsIds);
    }

    /**
     * 删除影视评分信息
     * 
     * @param ratingsId 影视评分主键
     * @return 结果
     */
    @Override
    public int deleteHyRatingsByRatingsId(Long ratingsId)
    {
        return hyRatingsMapper.deleteHyRatingsByRatingsId(ratingsId);
    }
}
